package com.xiaoming.mall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 *
 * @author sangxiaoming
 * 要远程调用的步骤：
 *   1) pom文件引入 openfeign
 *   2) 在启动类中开启远程调用的功能：@EnableFeignClients，并指定远程调用功能放的基础包
 *   3) 编写 feign相关的接口，接口表示springcloud需要调用某个具体的远程服务
 *        3.1
 *
 */
@EnableFeignClients(basePackages = "com.xiaoming.mall.member.feign")
@EnableDiscoveryClient
@SpringBootApplication
public class MallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallMemberApplication.class, args);
    }

}
